public class Odd_arrays {
    public static void main(String[] args) {
        int[] arr={1,2,34,3,4,5,7,23,12};
        System.out.println(odd(arr, arr.length));
    }

    public static boolean odd(int[] arr,int len) {
        for(int i=0;i<len-2;i++){
            if(arr[i]%2==1&&arr[i+1]%2==1&&arr[i+2]%2==1){
                return true;
            }
        }
        return false;
    }
}
